package ma.ac.onousc.gestionfi.EngagementPaiement.model;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

/**
 * The persistent class for the article database table.
 * 
 */
@Entity
public class Article implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int idArticle;
	private String designation;
	private String reference;

	@OneToMany(mappedBy = "article")
	private List<LigneArticle> ligneArticle;

	
	public Article(String designation, String reference) {
		super();
		this.designation = designation;
		this.reference = reference;
	}

	public Article() {
	}

	public int getIdArticle() {
		return this.idArticle;
	}

	public void setIdArticle(int idArticle) {
		this.idArticle = idArticle;
	}

	public String getDesignation() {
		return designation;
	}

	public void setDesignation(String designation) {
		this.designation = designation;
	}

	public String getReference() {
		return reference;
	}

	public void setReference(String reference) {
		this.reference = reference;
	}

	public List<LigneArticle> getLigneArticle() {
		return ligneArticle;
	}

	public void setLigneArticle(List<LigneArticle> ligneArticle) {
		this.ligneArticle = ligneArticle;
	}


	
}